﻿using DeskInterfaceService;
using IDeskService;
using IDeskServiceBLL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeskInterfaceBLL
{
    public class AuthBLL:IAuthBLL
    {
        private readonly IAuthService authService = new AuthService();
        public bool ValidateLogin(string name,string pwd,out string error)
        {
            return this.authService.GetToken(name, pwd, out error);
        }

        public pet_user Login(string phone,string pwd,out string error)
        {
            return this.authService.Login(phone, pwd, out error);
        }
    }
}
